package com.twu.biblioteca.command;

import com.twu.biblioteca.LibraryController;

public class MainMenuCommand implements Command {

    private LibraryController libraryController;

    public MainMenuCommand(LibraryController libraryController) {
        this.libraryController = libraryController;
    }

    @Override
    public void execute() {
        StringBuilder sb = new StringBuilder();
        sb.append("Menu: \n");
        sb.append(" 1- List Books \n");
        sb.append(" 2- List Movies \n");
        sb.append(" 3- Checkout Title \n");
        sb.append(" 4- Return Title \n");
        sb.append(" 5- Quit \n");
        sb.append(" 6- Show my personal information \n");
        if (libraryController.getLoggedUser().isLibrarian()){
            sb.append(" 7- List Titles - Librarian Function \n");
        }

        System.out.println(sb.toString());
    }
}
